"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getDefaultSettingFormData = exports.createDefaultFormViewPCFormConfig = exports.createDefaultFormViewMobileFormConfig = void 0;
const getDefaultSettingFormData = defOpts => {
  return {
    title: '',
    pcVisible: defOpts ? !!defOpts.pcVisible : true,
    pcVertical: true,
    pcTitleBold: true,
    pcTitleColon: false,
    pcTitleAlign: '',
    pcTitleWidth: '',
    pcTitleWidthUnit: '',
    mobileVisible: defOpts ? !!defOpts.mobileVisible : true,
    mobileVertical: true,
    mobileTitleBold: true,
    mobileTitleColon: false,
    mobileTitleAlign: '',
    mobileTitleWidth: '',
    mobileTitleWidthUnit: ''
  };
};
exports.getDefaultSettingFormData = getDefaultSettingFormData;
const createDefaultFormViewPCFormConfig = params => {
  const {
    formConfig
  } = params;
  return {
    vertical: formConfig.pcVertical,
    titleBold: formConfig.pcTitleBold,
    titleColon: formConfig.pcTitleColon,
    titleAlign: formConfig.pcTitleAlign,
    titleWidth: formConfig.pcTitleWidth
  };
};
exports.createDefaultFormViewPCFormConfig = createDefaultFormViewPCFormConfig;
const createDefaultFormViewMobileFormConfig = params => {
  const {
    formConfig
  } = params;
  return {
    vertical: formConfig.mobileVertical,
    titleBold: formConfig.mobileTitleBold,
    titleColon: formConfig.mobileTitleColon,
    titleAlign: formConfig.mobileTitleAlign,
    titleWidth: formConfig.mobileTitleWidth
  };
};
exports.createDefaultFormViewMobileFormConfig = createDefaultFormViewMobileFormConfig;